package com.ocom.mqsimple.feign;

import com.ocom.common.constant.MjRecodeUrl;
import com.ocom.common.request.access.AddAttendanceReq;
import com.ocom.common.request.srvpaccess.GetNosendRecordRequest;
import com.ocom.common.resp.Result;
import com.ocom.common.vo.recode.DoorRecodeVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "mjrecode")
public interface MjrecodeClientService {

//    @PostMapping(MjRecodeUrl.URL_Record)
//    public Result saveAccessRecord(@RequestBody DoorRecodeVo recodeVo);

    @PostMapping(value = MjRecodeUrl.URLP_getNosendRecord)
    Result getNosendRecord(@RequestBody GetNosendRecordRequest request);


    @PostMapping(value = MjRecodeUrl.URLR_addAttendanceData)
    public Result addAttendanceData(@RequestBody AddAttendanceReq request);

}
